<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="css/font.css">
        <link rel="stylesheet" href="css/xadmin.css">
        <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
        <script src="lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="js/xadmin.js"></script>
        <script type="text/javascript" src="js/cookie.js"></script>
    </head>
    <body>
    <div class="x-body">
        <blockquote class="layui-elem-quote">欢迎您：
            <span class="x-red" id="UName"></span>！当前时间:<span id="Time"></span><a onclick="parent.x_admin_add_to_tab()" style="color: red" href="javascript:;"></a>
        </blockquote>
        <fieldset class="layui-elem-field">
            <legend>数据统计</legend>
            <div class="layui-field-box">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this" style="display: flex;justify-content: space-around">
                                        <li style="width: 45%">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3 style="margin-left: 40%">账户状态</h3>
                                                <p style="margin: 0 auto;">
                                                    <cite id="number" style="margin-left:40%;"></cite></p>
                                            </a>
                                        </li>
                                        <li style="width: 45%">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3 style="margin-left: 40%">联系电话</h3>
                                                <p style="margin: 0 auto;">
                                                    <cite style="margin-left: 30%" >123456789</cite></p>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>系统通知</legend>
            <div class="layui-field-box">
                <table class="layui-table" lay-skin="line">
                    <tbody>
                        <tr>
                            <td >
                                <a class="x-a" href="/" target="_blank">新版物流管理系统上线了</a>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <a class="x-a" href="/" target="_blank">交流QQ群:1218767583</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>开发团队</legend>
            <div class="layui-field-box">
                <table class="layui-table">
                    <tbody>
                        <tr>
                            <th>版权所有</th>
                            <td>蔡斌个人
                                <a href="#" class='x-a' target="_blank">访问官网</a></td>
                        </tr>
                        <tr>
                            <th>开发者</th>
                            <td>蔡斌团队</td></tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <blockquote class="layui-elem-quote layui-quote-nm">感谢百度,cctv,芒果tv，腾讯视频对此产品提供技术支持。</blockquote>
    </div>
        <script>
            // 时间
            var myDate = new Date();
            function mytime(){
                $("#Time").text(myDate.getFullYear()+"."+(myDate.getMonth()+1)+"."+myDate.getDate()+"\t"+myDate.getHours()+":"+myDate.getMinutes()+":"+myDate.getSeconds()+"\t");
            }
            setInterval(mytime,1000);

            //用户名
            $("#UName").text(localStorage.getItem("UName"));

            //用户在线状态
            var layedit = layui.layedit;
                $.ajax({
                    url:'http://localhost:8081/User/getUser',//请求地址
                    method:'GET',//请求的方法
                    dataType:'JSON',//值类型
                    data:{
                        UName:localStorage.getItem("UName")
                    },//往后端发送的值
                    success:function(res){//成功的回调函数
                        console.log("11111");
                        console.log(res);
                        $("#number").text(res.data);
                    },
                    error:function (data) {//失败的回调函数
                        alert("系统出错");
                    }
                });

            //快递状态
            var layedit = layui.layedit;
            $.ajax({
                url:'http://localhost:8081/Express/getExpress',//请求地址
                method:'GET',//请求的方法
                dataType:'JSON',//值类型
                data:{
                    consignee:localStorage.getItem("UName")
                },//往后端发送的值
                success:function(res){//成功的回调函数
                    console.log("11111");
                    console.log(res);
                    $("#NextBranch").text(res.data);
                },
                error:function (data) {//失败的回调函数
                    alert("系统出错");
                }
            });

            var _hmt = _hmt || [];
            (function() {
              var hm = document.createElement("script");
              hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
              var s = document.getElementsByTagName("script")[0];
              s.parentNode.insertBefore(hm, s);
            })();
        </script>
    </body>
</html>